Utility.queueExecute Method

Delay an execution of a function by some time. If the same identifier is used, function call will be placed in a queue, and executed synchronously when delay is up.
 

Parameters

identifier

Type: string
An identifier.
delay

Type: Number
Amount of delay in milliseconds.
func

Type: Function
Function to execute.
executeDelay

Type: Number - May be null
A delay between executing each queued function. Useful when wants to avoid hogging UI thread.